package com.ruoyi.zhgd.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.zhgd.domain.NLaboratoryMarshallStabilityNewRes;
import com.ruoyi.zhgd.domain.bo.ZjExperimentBindingBo;
import com.ruoyi.zhgd.domain.vo.NLaboratoryMarshallStabilityNewResVo;
import com.ruoyi.zhgd.domain.bo.NLaboratoryMarshallStabilityNewResBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 马歇尔稳定度测定仪_结果Service接口
 *
 * @author zyb
 * @date 2023-09-11
 */
public interface INLaboratoryMarshallStabilityNewResService {

    /**
     * 查询马歇尔稳定度测定仪_结果
     */
    NLaboratoryMarshallStabilityNewResVo queryById(String id);

    /**
     * 查询马歇尔稳定度测定仪_结果列表
     */
    TableDataInfo<NLaboratoryMarshallStabilityNewResVo> queryPageList(NLaboratoryMarshallStabilityNewResBo bo, PageQuery pageQuery);

    /**
     * 查询马歇尔稳定度测定仪_结果列表
     */
    List<NLaboratoryMarshallStabilityNewResVo> queryList(NLaboratoryMarshallStabilityNewResBo bo);

    /**
     * 新增马歇尔稳定度测定仪_结果
     */
    Boolean insertByBo(NLaboratoryMarshallStabilityNewResBo bo);

    /**
     * 修改马歇尔稳定度测定仪_结果
     */
    Boolean updateByBo(NLaboratoryMarshallStabilityNewResBo bo);

    /**
     * 校验并批量删除马歇尔稳定度测定仪_结果信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 马歇尔稳定度测定仪_结果试验设备列表
     * @param bo
     * @param pageQuery
     * @return
     */
    TableDataInfo<NLaboratoryMarshallStabilityNewResVo> page(NLaboratoryMarshallStabilityNewResBo bo, PageQuery pageQuery);

    /**
     * 根据试验ids查询实验数据列表
     * @param ids
     * @return
     */
    List<NLaboratoryMarshallStabilityNewRes> getListByIds(List<String> ids);

    /**
     * 批量更新
     * @param marshallResList
     */
    void updateBatch(List<NLaboratoryMarshallStabilityNewRes> marshallResList);

    /**
     * 查询已关联数据
     * @param bo
     * @param build
     * @return
     */
    Page<Map<String, Object>> getRelPage(Page<Object> build, ZjExperimentBindingBo bo);

    /**
     * 是否关联是否合格状态更新
     * @param laboratoryId
     * @param eligible
     * @param relevance
     */
    void updateStatus(String laboratoryId, Integer eligible, Integer relevance);
}
